<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">

	<title>ASControlNode Class Reference</title>

	<link rel="stylesheet" href="../css/style.css">
	<meta name="viewport" content="initial-scale=1, maximum-scale=1.4">
	<meta name="generator" content="appledoc 2.2.1 (build 1334)">
</head>
<body class="appledoc">
	<header>
		<div class="container" class="hide-in-xcode">
			
			<h1 id="library-title">
				<a href="../index.html">  </a>
			</h1>

			<p id="developer-home">
				<a href="../index.html">AsyncDisplayKit</a>
			</p>
			
		</div>
	</header>

	<aside>
		<div class="container">
			<nav>
				<ul id="header-buttons" role="toolbar">
					<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>

					<li id="on-this-page" role="navigation">
						<label>
							On This Page

							<div class="chevron">
								<div class="chevy chevron-left"></div>
								<div class="chevy chevron-right"></div>
							</div>

							<select id="jump-to">
	<option value="top">Jump To&#133;</option>
	
	<option value="overview">Overview</option>
	

	
	
	<option value="tasks">Tasks</option>
	
	

	
	
	<optgroup label="Properties">
		
		<option value="//api/name/enabled">enabled</option>
		
		<option value="//api/name/highlighted">highlighted</option>
		
		<option value="//api/name/selected">selected</option>
		
		<option value="//api/name/touchInside">touchInside</option>
		
		<option value="//api/name/tracking">tracking</option>
		
	</optgroup>
	

	

	
	<optgroup label="Instance Methods">
		
		<option value="//api/name/actionsForTarget:forControlEvent:">- actionsForTarget:forControlEvent:</option>
		
		<option value="//api/name/addTarget:action:forControlEvents:">- addTarget:action:forControlEvents:</option>
		
		<option value="//api/name/allTargets">- allTargets</option>
		
		<option value="//api/name/removeTarget:action:forControlEvents:">- removeTarget:action:forControlEvents:</option>
		
		<option value="//api/name/sendActionsForControlEvents:withEvent:">- sendActionsForControlEvents:withEvent:</option>
		
		<option value="//api/name/setDefaultFocusAppearance">- setDefaultFocusAppearance</option>
		
	</optgroup>
	
	
</select>
						</label>
					</li>
				</ul>
			</nav>
		</div>
	</aside>

	<article>
		<div id="overview_contents" class="container">
			<div id="content">
				<main role="main">
					<h1 class="title">ASControlNode Class Reference</h1>

					
					<div class="section section-specification"><table cellspacing="0"><tbody>
						<tr>
	<th>Inherits from</th>
	<td><a href="../Classes/ASDisplayNode.html">ASDisplayNode</a> : ASDealloc2MainObject</td>
</tr><tr>
	<th>Declared in</th>
	<td>ASControlNode.h</td>
</tr>
						</tbody></table></div>
					

                    
					
					<div class="section section-overview">
						<a title="Overview" name="overview"></a>
						<h2 class="subtitle subtitle-overview">Overview</h2>
						<p>ASControlNode cannot be used directly. It instead defines the common interface and behavior structure for all its subclasses. Subclasses should import &ldquo;ASControlNode+Subclasses.h&rdquo; for information on methods intended to be overriden.</p>
					</div>
					
					

					
					
					<div class="section section-tasks">
						<a title="Tasks" name="tasks"></a>
						

						
						

						<div class="task-list">
							<div class="section-method">
	<a name="//api/name/enabled" title="enabled"></a>
	<h3 class="method-title"><code><a href="#//api/name/enabled">&nbsp;&nbsp;enabled</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>Indicates whether or not the receiver is enabled.</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>@property (nonatomic, assign, getter=isEnabled) BOOL enabled</code></div>

		    
			

			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>Specify YES to make the control enabled; otherwise, specify NO to make it disabled. The default value is YES. If the enabled state is NO, the control ignores touch events and subclasses may draw differently.</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">ASControlNode.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/highlighted" title="highlighted"></a>
	<h3 class="method-title"><code><a href="#//api/name/highlighted">&nbsp;&nbsp;highlighted</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>Indicates whether or not the receiver is highlighted.</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>@property (nonatomic, assign, getter=isHighlighted) BOOL highlighted</code></div>

		    
			

			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>This is set automatically when the there is a touch inside the control and removed on exit or touch up. This is different from touchInside in that it includes an area around the control, rather than just for touches inside the control.</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">ASControlNode.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/selected" title="selected"></a>
	<h3 class="method-title"><code><a href="#//api/name/selected">&nbsp;&nbsp;selected</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>Indicates whether or not the receiver is highlighted.</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>@property (nonatomic, assign, getter=isSelected) BOOL selected</code></div>

		    
			

			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>This is set automatically when the receiver is tapped.</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">ASControlNode.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/tracking" title="tracking"></a>
	<h3 class="method-title"><code><a href="#//api/name/tracking">&nbsp;&nbsp;tracking</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>Indicates whether or not the receiver is currently tracking touches related to an event.</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>@property (nonatomic, readonly, assign, getter=isTracking) BOOL tracking</code></div>

		    
			

			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>YES if the receiver is tracking touches; NO otherwise.</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">ASControlNode.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/touchInside" title="touchInside"></a>
	<h3 class="method-title"><code><a href="#//api/name/touchInside">&nbsp;&nbsp;touchInside</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>Indicates whether or not a touch is inside the bounds of the receiver.</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>@property (nonatomic, readonly, assign, getter=isTouchInside) BOOL touchInside</code></div>

		    
			

			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>YES if a touch is inside the receiver&rsquo;s bounds; NO otherwise.</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">ASControlNode.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/addTarget:action:forControlEvents:" title="addTarget:action:forControlEvents:"></a>
	<h3 class="method-title"><code><a href="#//api/name/addTarget:action:forControlEvents:">&ndash;&nbsp;addTarget:action:forControlEvents:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>Adds a target-action pair for a particular event (or events).</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)addTarget:(nullable id)<em>target</em> action:(SEL)<em>action</em> forControlEvents:(ASControlNodeEvent)<em>controlEvents</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>target</code></th>
						<td><p>The object to which the action message is sent. If this is nil, the responder chain is searched for an object willing to respond to the action message. target is not retained.</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>action</code></th>
						<td><p>A selector identifying an action message. May optionally include the sender and the event as parameters, in that order. May not be NULL.</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>controlEvents</code></th>
						<td><p>A bitmask specifying the control events for which the action message is sent. May not be 0. See &ldquo;Control Events&rdquo; for bitmask constants.</p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>You may call this method multiple times, and you may specify multiple target-action pairs for a particular event. Targets are held weakly.</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">ASControlNode.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/actionsForTarget:forControlEvent:" title="actionsForTarget:forControlEvent:"></a>
	<h3 class="method-title"><code><a href="#//api/name/actionsForTarget:forControlEvent:">&ndash;&nbsp;actionsForTarget:forControlEvent:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>Returns the actions that are associated with a target and a particular control event.</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (nullable NSArray&lt;NSString*&gt; *)actionsForTarget:(id)<em>target</em> forControlEvent:(ASControlNodeEvent)<em>controlEvent</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>target</code></th>
						<td><p>The target object. May not be nil.</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>controlEvent</code></th>
						<td><p>A single constant of type ASControlNodeEvent that specifies a particular user action on the control; for a list of these constants, see &ldquo;Control Events&rdquo;. May not be 0 or ASControlNodeEventAllEvents.</p></td>
					</tr>
				
				</table>
			</div>
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>An array of selector names as NSString objects, or nil if there are no action selectors associated with controlEvent.</p>
			</div>
			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">ASControlNode.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/allTargets" title="allTargets"></a>
	<h3 class="method-title"><code><a href="#//api/name/allTargets">&ndash;&nbsp;allTargets</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>Returns all target objects associated with the receiver.</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (NSSet *)allTargets</code></div>

		    
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>A set of all targets for the receiver. The set may include NSNull to indicate at least one nil target (meaning, the responder chain is searched for a target.)</p>
			</div>
			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">ASControlNode.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/removeTarget:action:forControlEvents:" title="removeTarget:action:forControlEvents:"></a>
	<h3 class="method-title"><code><a href="#//api/name/removeTarget:action:forControlEvents:">&ndash;&nbsp;removeTarget:action:forControlEvents:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>Removes a target-action pair for a particular event.</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)removeTarget:(nullable id)<em>target</em> action:(nullable SEL)<em>action</em> forControlEvents:(ASControlNodeEvent)<em>controlEvents</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>target</code></th>
						<td><p>The target object. Pass nil to remove all targets paired with action and the specified control events.</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>action</code></th>
						<td><p>A selector identifying an action message. Pass NULL to remove all action messages paired with target.</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>controlEvents</code></th>
						<td><p>A bitmask specifying the control events associated with target and action. See &ldquo;Control Events&rdquo; for bitmask constants. May not be 0.</p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">ASControlNode.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/sendActionsForControlEvents:withEvent:" title="sendActionsForControlEvents:withEvent:"></a>
	<h3 class="method-title"><code><a href="#//api/name/sendActionsForControlEvents:withEvent:">&ndash;&nbsp;sendActionsForControlEvents:withEvent:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>Sends the actions for the control events for a particular event.</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)sendActionsForControlEvents:(ASControlNodeEvent)<em>controlEvents</em> withEvent:(nullable UIEvent *)<em>event</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>controlEvents</code></th>
						<td><p>A bitmask specifying the control events for which to send actions. See &ldquo;Control Events&rdquo; for bitmask constants. May not be 0.</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>event</code></th>
						<td><p>The event which triggered these control actions. May be nil.</p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">ASControlNode.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/setDefaultFocusAppearance" title="setDefaultFocusAppearance"></a>
	<h3 class="method-title"><code><a href="#//api/name/setDefaultFocusAppearance">&ndash;&nbsp;setDefaultFocusAppearance</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>How the node looks when it isn&rsquo;t focused. Exposed here so that subclasses can override.</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)setDefaultFocusAppearance</code></div>

		    
			

			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">ASControlNode.h</code></p>
			</div>
			
			
		</div>
	</div>
</div>
						</div>
						
					</div>
					
					

                    
                    
          
				</main>

				<footer>
					<div class="footer-copyright">
						
						<p class="copyright">Copyright &copy; 2016 AsyncDisplayKit. All rights reserved. Updated: 2016-11-05</p>
						
						
						<p class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2.1 (build 1334)</a>.</p>
						
					</div>
				</footer>
			</div>
		</div>
	</article>

	<script src="../js/script.js"></script>
</body>
</html>